/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.file.utils.FileUploadUtils;
import com.jeesite.modules.goods.dao.ZtJDorderDao;
import com.jeesite.modules.goods.entity.ZtGoods;
import com.jeesite.modules.goods.entity.ZtJDorder;

/**
 * 测试数据Service
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Service
@Transactional(readOnly = true)
public class ZtJDorderService extends CrudService<ZtJDorderDao, ZtJDorder> {

	/**
	 * 获取单条数据
	 * 
	 * @param testData
	 * @return
	 */
	@Override
	public ZtJDorder get(ZtJDorder ztJDorder) {
		ZtJDorder entity = super.get(ztJDorder);
		if (entity == null) {
			entity = new ZtJDorder();
		}
		return entity;
	}

	public ZtJDorder getByJDorder(ZtJDorder ztJDorder) {
		return dao.getByJDorder(ztJDorder);
	}
	
	public ZtJDorder getJDorder(ZtJDorder ztJDorder) {
		return dao.getJDorder(ztJDorder);
	}
	
	
	public List<ZtJDorder> findMh(ZtJDorder ztJDorder) {
		return dao.findMh(ztJDorder);
	}
	public List<ZtJDorder> findwc(ZtJDorder ztJDorder) {
		return dao.findwc(ztJDorder);
	}
	public List<ZtJDorder> findAllJDorder(ZtJDorder ztJDorder) {
		return dao.findAllJDorder(ztJDorder);
	}
	
	public List<ZtJDorder> findGhMh(ZtJDorder ztJDorder) {
		return dao.findGhMh(ztJDorder);
	}
	
	
	public List<ZtJDorder> findListByNew(ZtJDorder ztJDorder) {
		return dao.findListByNew(ztJDorder);
	}

	/**
	 * 查询分页数据
	 * 
	 * @param page
	 *            分页对象
	 * @param testData
	 * @return
	 */
	@Override
	public Page<ZtJDorder> findPage(Page<ZtJDorder> page, ZtJDorder ztJDorder) {
		return super.findPage(page, ztJDorder);
	}

	/**
	 * 保存数据（插入或更新）
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void save(ZtJDorder ztJDorder) {
		super.save(ztJDorder);
	}
	
	@Transactional(readOnly = false)
	public void updateAddr(ZtJDorder ztJDorder) {
		dao.updateAddr(ztJDorder);
	}
	
	/**
	 * 更新状态
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void updateStatus(ZtJDorder ztJDorder) {
		super.updateStatus(ztJDorder);
	}
	
	
	
	/**
	 * 删除数据
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void delete(ZtJDorder ztJDorder) {
		super.delete(ztJDorder);
	}
	
	
	@Transactional(readOnly = false)
	public void updateJDorderstatus(ZtJDorder ztJDorder) {
		dao.updateJDorderstatus(ztJDorder);
	}
	
	

}